{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link href="{% static 'layui/css/layui.css' %}" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'css/login.css' %}">

</head>
<body>
<div class="login">
    <div class="logo">

    </div>
    <form class="login-form" method="post" action="/register/">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input type="text" name="email" required  lay-verify="required" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码框</label>
            <!--<div class="layui-input-inline">-->
            <div class="layui-input-block">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
<!--            <div class="layui-form-mid layui-word-aux">辅助文字</div>-->
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">确认密码</label>
            <!--<div class="layui-input-inline">-->
            <div class="layui-input-block">
                <input type="password" name="password" required lay-verify="required" placeholder="再次请输入密码" autocomplete="off" class="layui-input">
            </div>
<!--            <div class="layui-form-mid layui-word-aux">辅助文字</div>-->
        </div>

<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">手机号</label>-->
<!--            <div class="layui-input-block">-->
<!--                <input type="text" name="email" required lay-verify="required" placeholder="请输入手机号" autocomplete="off" class="layui-input">-->
<!--            </div>-->
<!--        </div>-->

        {% if message %}
        <div class="layui-form-item" id='message'>
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <div id="message-box" style="background-color: #FFEFFF; padding: 10px 5px ; color: #FF3366">{{ message }}</div>
            </div>
        </div>
        {% endif %}

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo" type="submit">立即注册</button>
                <a href="/login/" class="layui-btn layui-btn-primary">返回登录</a>
            </div>
        </div>
    </form>
</div>
</body>
<script src="{% static 'js/jquery-3.7.1.min.js' %}"></script>
<!--<script src="asset/js/bootstrap.bundle.min.js"></script>-->
<script color="0,0,255" opacity="0.5" zIndex="-1" count="99" src="{% static 'js/canvas-nest.js' %}"></script>
</html>